package com.lq.common.api.client;

import com.lq.common.api.dto.CartDTO;
import com.lq.common.result.Result;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "cart-service")
public interface CartFeignClient {

    @GetMapping("/carts/{id}")
    Result<CartDTO> getCartById(@PathVariable("id") Long id);

}